/*
* @Author: dongshangtong
* @Date:   2018-10-11 20:00:37
* @Last Modified by:   dongshangtong
* @Last Modified time: 2018-10-11 20:01:00
*/


module.exports = (sequelize, DataTypes) => sequelize.define(
  'users',
  {
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      autoIncrement: true,
      allowNull: false,
    },
    nick_name: DataTypes.STRING,
    avatar_url: DataTypes.STRING,
    gender: DataTypes.INTEGER,
    open_id: DataTypes.STRING,
    session_key: DataTypes.STRING,
  },
  {
    tableName: 'users',
  },
);